<template>
		<navigator class="goods_item" :url="'/pages/goods/goodsItem?id=' + item.id">
			<u-image class="u-skeleton-rect" width="100%" height="300rpx" :src="item.cover_url"></u-image>
			<view class="title u-skeleton-rect">{{item.title ? item.title : '商品数据'}}</view>
			<view class="u-flex u-row-between">
				<view class="price u-skeleton-rect">￥ {{item.price}}</view>
				<view class="sales u-skeleton-rect">销量：{{item.sales}}</view>
			</view>
		</navigator>
</template>

<script>
	export default {
		name:"goods-item",
		props:{
			item:{
				type:Object,
				default(){
					return {}
				}
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.goods_item{
		padding: 30rpx;
		margin-top: 30rpx;
		box-shadow: 0 12rpx 20rpx 0 rgba(0,0,0,.1);
		.title{
			margin-bottom: 15rpx;
			margin-top: 15rpx;
			font-weight: 500;
			font-size: 30rpx;
			overflow: hidden;
			width: 100%;
		}
		.price{
			color: red;
			width: 40%;
		}
		.sales{
			color: #888;
			width: 40%;
		}
	}
</style>
